package cn.duwey.scs.common.entity;

import cn.duwey.scs.common.base.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.Where;

//import javax.persistence.Column;
//import javax.persistence.Entity;
//import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "tb_user")
@Where(clause = "is_deleted = 0")
public class UserEntity extends BaseEntity {

    @Column(name = "username")
    private String username;

    @Column(name = "realname")
    private String realname;

    @Column(name = "nickname")
    private String nickname;

    @Column(name = "gender")
    private Integer gender;

    @Column(name = "age")
    private Integer age;

    @Column(name = "birthday")
    private Date birthday;

    @Column(name = "email")
    private String email;

    @Column(name = "status")
    private int status;

}
